package com.fpx.open.platform.domain.ae.send;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlType;

import com.fpx.open.platform.domain.ae.EventHeader;

@XmlType(propOrder = { "eventHeader", "eventBody" })
public class SendEvent {
    @NotNull(message="eventHeader不能为空")
    @Valid
    private EventHeader eventHeader;
    @NotNull(message="eventBody不能为空")
    @Valid
    private SendEventBody eventBody;
   
    public EventHeader getEventHeader() {
        return eventHeader;
    }

    public void setEventHeader(EventHeader eventHeader) {
        this.eventHeader = eventHeader;
    }

    public SendEventBody getEventBody() {
        return eventBody;
    }

    public void setEventBody(SendEventBody eventBody) {
        this.eventBody = eventBody;
    }

    @Override
    public String toString() {
        return "LogisticsEvent [eventHeader=" + eventHeader + ", eventBody=" + eventBody + "]";
    }

}
